package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysFeel;
import com.jinghua.treatment.mapper.SysFeelMapper;
import com.jinghua.treatment.service.SysFeelService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 身体感觉情况业务接口实现类
 * Created by 王兴光 on 2018/3/26.
 */
@Service("feelService")
public class SysFeelServiceImpl implements SysFeelService {

    @Resource
    private SysFeelMapper feelMapper;

    @Override
    public SysFeel selectByPrimaryKey(Integer feelId) {
        return feelMapper.selectByPrimaryKey(feelId);
    }

    @Override
    @Transactional
    public int insert(SysFeel record) {
        return feelMapper.insert(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(SysFeel record) {
        return feelMapper.updateByPrimaryKey(record);
    }
}
